package com.aierjun.lgmusic.fragment;

import android.content.Context;
import android.support.v4.app.Fragment;

import com.aierjun.lgmusic.R;
import com.sam.ui.base.activity.BaseFragmentActivity;
import com.sam.widget.nav_bar.NavigationBar;

/**
 * Created by Administrator on 2016/10/10.
 */
public class MainFragmentActivity extends BaseFragmentActivity {

    @Override
    protected void initPageInfo() {
        NavigationBar.NavigationItemEntity[] items={
                new NavigationBar.NavigationItemEntity(MainFragmentActivity.this, R.string.news,R.drawable.dynamic_off,R.drawable.dynamic_on_white),
                new NavigationBar.NavigationItemEntity(MainFragmentActivity.this,R.string.tops,R.drawable.ranking_off,R.drawable.ranking_on_white),
                new NavigationBar.NavigationItemEntity(MainFragmentActivity.this,R.string.upload,R.drawable.upload_off,R.drawable.upload_on_white),
                new NavigationBar.NavigationItemEntity(MainFragmentActivity.this,R.string.me,R.drawable.persional_center_off,R.drawable.me_on_white),
        };
        Fragment[] fragments={NewsFragment.getInstance(MainFragmentActivity.this), TopsFragment.getInstance(), UploadFragment.getInstance(), MeFragment.getInstance()};
        setPageInfo(items,fragments,0);
        getNavigationBar().setNavItemNamePxSize(24);
        getNavigationBar().setBackgroundColor(getResources().getColor(R.color.bottom_line));
        getNavigationBar().setNavItemNameIconPadding(10);
        getNavigationBar().setMinimumHeight(106);
        getNavigationBar().setNavItemNameCheckedColor(getResources().getColor(R.color.ui_bg));
        getNavigationBar().setNavItemNameUncheckedColor(getResources().getColor(R.color.text_gray));
    }
}
